package com.richfit.cuba.web.config.quartz.service;

import java.util.List;

import org.quartz.SchedulerException;

import com.richfit.cuba.web.config.quartz.entity.Config;

public interface IQuartzTableService {

	public List<Config> getAllJobs();
	/**
	 * 启用或禁用任务
	 * @param id
	 * @param status
	 * @throws Exception
	 */
	public void update(String id, String status) throws Exception;

	/**
	 *
	 * 启动所有的任务
	 * @return: void
	 */
	public void startJobs();
	
	/**
	 * 
	 * @Title: pauseJob   
	 * @Description: pause Job  
	 * @author: lanji
	 * @date:   2018-11-01 16:48:39
	 * @param config
	 * @return
	 * @throws SchedulerException      
	 *     boolean      
	 * @throws null
	 */
	public boolean pauseJob(Config config) throws SchedulerException;
	/**
	 * 
	 * @Title: resumeJob   
	 * @Description: resume Job 
	 * @author: lanji
	 * @date:   2018-11-01 16:49:07
	 * @param config
	 * @return
	 * @throws SchedulerException      
	 *     boolean      
	 * @throws null
	 */
	public boolean resumeJob(Config config) throws SchedulerException;

}